<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style lang="">
        div {
            margin-top: 30px !important;
        }
        
        .one {
            width: 900px;
            height: 50px;
            background: red;
            margin: 0 auto;
        }
        
        .two {
            width: 900px;
            height: 50px;
            background: blue;
            margin: 0 auto;
        }
        
        @media screen and (max-width:800px) {
            #one {
                display: block;
            }
            #two {
                display: none;
            }
        }
        
        @media screen and (max-width:1000px) {
            #two {
                display: none;
            }
        }
    </style>
</head>

<body>
    <div id="one">
        <div class="one"></div>
        <div class="two"></div>
    </div>

    <div id="two">
        <div class="one"></div>
        <div class="two"></div>
    </div>
</body>

</html>